﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiZe.education.Common
{
    public class ClassModel2 : ModelBase
    {
        public int id { get; set; }

        private string _parentName;
        public string parentName
        {
            get { return _parentName; }
            set
            {
                _parentName = value;
                DisPlayName = $"{value}{name}";
            }
        }

        public string name { get; set; }
        public string level { get; set; }

        public int pid { get; set; }

        public string status { get; set; }

        public int weigh { get; set; }

        public int createtime { get; set; }

        public List<ClassModel2> SubClass { get; set; }
        public string DisPlayName { get; set; }
    }


    //public class ClassModel3
    //{
    //    public int code { get; set; }

    //    private string msg { get; set; }
    //    public string time { get; set; }


    //    public List<ClassModel3> data { get; set; }

    //}
    public class ClassModel3
    {
        public int id { get; set; }

        private string _parentName;
        public string parentName
        {
            get { return _parentName; }
            set
            {
                _parentName = value;
                DisPlayName = $"{value}{name}";
            }
        }

        public string name { get; set; }
        public string level { get; set; }

        public int pid { get; set; }

        public string status { get; set; }

        public int weigh { get; set; }

        public int createtime { get; set; }
        public int class_sort { get; set; }
        public string name_test { get; set; }
        public string use_name { get; set; }

        public List<ClassModel3> list { get; set; }

        public List<ClassModel3> SubClass { get; set; }
        public string DisPlayName { get; set; }

    }

}
